#ifndef __Uart_H
#define __Uart_H
/*------------------------------ Includes -------------------------------*/
#define  BUFSIZE 50


#define USART1_MAX_SEND_LEN		512


typedef volatile struct
{
    vs32    Serialout;
    uint8_t RecvFlag;
    uint8_t RecvHeadFlag;
    uint8_t TxdPos;
    uint8_t TxdLen;
    uint8_t RxdLen;
    uint8_t SendBuf[BUFSIZE];
    uint8_t RecvBuf[BUFSIZE];
}UART_T;
extern UART_T Uart1;

void Uart1_Printf(char* fmt,...);
void Uart1_Init(u32 bound);
void SendToUart1(u8 size);
#endif 